package cn.itcast.mq.listener;

import lombok.extern.slf4j.Slf4j;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
 * 测试: 仲裁队列
 */
@Slf4j
@Component
public class QuorumListener {
    @RabbitListener(queues = "quorum.queue2")
    public void listenDelayMsg(String msg) {
        log.info("[延迟队列]:{}", msg);
    }
}
